class StaffGroupEntity {
  List<StaffGroupInfo>? data;

  StaffGroupEntity({
    this.data,
  });

  factory StaffGroupEntity.fromJson(Map<String, dynamic> json) {
    final originList = json['data'] as List?;
    List<StaffGroupInfo> protocolList =
        (originList??[]).map((value) => StaffGroupInfo.fromJson(value)).toList();
    return StaffGroupEntity(
      data: protocolList,
    );
  }
}

class StaffGroupInfo {
  String? name;
  String? userName;

  int? serviceTypeId;
  int? humanId;
  int? id;
  bool isSelected = false;

  StaffGroupInfo({
    this.name,
    this.userName,
    this.serviceTypeId,
    this.humanId,
    this.id,
    this.isSelected = false,
  });

  StaffGroupInfo.fromJson(Map data) {
    name = data['name'];
    id = data['id'];
    userName = data['userName'];

    serviceTypeId = data['serviceTypeId'];
    humanId = data['humanId'];
    isSelected = data['isSelected'] = false;
  }
}
